﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MotionPlanning.MotionPlanningPrimitives;

namespace MotionPlanning.MotionPlanningAlgorithms.RRT_Standard
{
    ///
    /// NodeData for RRT
    ///
    public class NodeData_RRT : RoboticSystemPlanningNodeData
    {
        public NodeData_RRT(double[] q, double cost)
            : base(q, cost)
        { }
        public override string ToString()
        {
            string content = "";
            for (int i = 0; i < this.q.Length; ++i)
            {
                content += q[i] + ",";
            }
            content += this.utility_c;
            return content;
        }
    }
}
